package com.example.mymall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author <a href="https://srpihot.site">Srpihot</a>
 * @since 2021-10-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("comment")
public class CommentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 详情id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    @TableField("goodsid")
    private Integer goodsid;

    /**
     * 评论人id
     */
    @TableField("userid")
    private Integer userid;

    /**
     * 评论内容
     */
    @TableField("context")
    private String context;

    /**
     * 评论时间
     */
    @TableField("time")
    private LocalDateTime time;

    /**
     * 评论树节点
     */
    @TableField("parentid")
    private Integer parentid;


}
